package ZooManagementSystem2.ZooCollection;

import ZooManagementSystem2.ZooEntity.User;

public class AnimalOfParkCollection extends UserCollection{

    //Kingdom, Phylum, Class, Order, Family, Genus, Species
    private ParkInfo animalOfPark;


    //纲
    private String animalClass;

    //科
    private String animalFamily;

    //种
    private String animalSpecies;


    public String displayAllAnimals(){
        String displayMessageString="";
        displayMessageString=this.animalOfPark.getParkName()+" "+
                this.animalClass+" "+this.animalFamily+" "+this.animalSpecies+" ";

        for(User current:userList){
            displayMessageString=displayMessageString+" "+current.getUserName();
        }
        return displayMessageString;
    }




    public ParkInfo getAnimalOfPark() {
        return animalOfPark;
    }

    public void setAnimalOfPark(ParkInfo animalOfPark) {
        this.animalOfPark = animalOfPark;
    }



    public String getAnimalClass() {
        return animalClass;
    }

    public void setAnimalClass(String animalClass) {
        this.animalClass = animalClass;
    }



    public String getAnimalFamily() {
        return animalFamily;
    }

    public void setAnimalFamily(String animalFamily) {
        this.animalFamily = animalFamily;
    }


    public String getAnimalSpecies() {
        return animalSpecies;
    }

    public void setAnimalSpecies(String animalSpecies) {
        this.animalSpecies = animalSpecies;
    }
}
